package com.cn.test1.servlet;

import com.cn.test1.model.TopModel;
import com.cn.test1.service.TopService;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
@WebServlet("/top")
public class TopServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

//        TopService TopService = new TopService();
//        TopModel TopModel = TopService.getTopModel();
//        req.setAttribute("TopModel",TopModel);
//        //拿到导航信息
//        List<TopModel> TopModelList = TopService.getTopModelList();
//        req.setAttribute("TopModelList",TopModelList);
//
//        req.getRequestDispatcher("/jsp/Top.jsp").forward(req,resp);

    }
}
